      1  public class BorderMaker

      2  {

      3     public static void main(String[] args)

      4     {

      5        Picture pic = new Picture();

      6        pic.load("queen-mary.png");

      7        int newWidth = pic.getWidth() - 40;

      8        int newHeight = pic.getHeight() - 40;

      9        pic.scale(newWidth, newHeight);

     10        pic.move(20, 20);

     11        pic.border(10);

     12     }

     13  }